// define globals
var items = [];

// function that doesn't do much
function process(i){};

// setup the test
SBTest({
  title: "Decreasing while loop",
  setup: function() {

    // build a big array
    for (var i = 0; i < 100; i++) {
      items.push(i);
    }

  },
  code: function() {

    // loop over the items
    var i = items.length;
	while (i--) {
		process(i);
    };

  },
  cleanup: function() {
    delete items;
  }
});